const { loadFont, checkLang } = require("./utils/language")

App({
  data: {
    "ossCache":"https://rassam-cache.oss-cn-guangzhou.aliyuncs.com",
    "ossConfig":"https://rassam-app.oss-cn-guangzhou.aliyuncs.com",
    "font":"https://tohsun.com/files/"
  },
  ossCache(resourceName) {
    return this.data.ossCache + "/" + resourceName
  },
  ossConfig(resourceName) {
    return this.data.ossConfig + "/" + resourceName
  },
  font(resourceName) {
    return this.data.font + resourceName
  },
  onLaunch() {
    loadFont(this)
    checkLang()
  },
  globalData: {  }
})